package cn.iocoder.yudao.module.carbon.convert.gwp;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.carbon.api.gwp.dto.GwpRespDTO;
import cn.iocoder.yudao.module.carbon.controller.admin.gwp.vo.GwpCreateReqVO;
import cn.iocoder.yudao.module.carbon.controller.admin.gwp.vo.GwpExcelVO;
import cn.iocoder.yudao.module.carbon.controller.admin.gwp.vo.GwpRespVO;
import cn.iocoder.yudao.module.carbon.controller.admin.gwp.vo.GwpUpdateReqVO;
import cn.iocoder.yudao.module.carbon.dal.dataobject.gwp.GwpDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 全球变暖潜能值 Convert
 *
 * @author StevenShen
 */
@Mapper
public interface GwpConvert {

    GwpConvert INSTANCE = Mappers.getMapper(GwpConvert.class);

    GwpDO convert(GwpCreateReqVO bean);

    GwpDO convert(GwpUpdateReqVO bean);

    GwpRespVO convert(GwpDO bean);

    List<GwpRespVO> convertList(List<GwpDO> list);

    PageResult<GwpRespVO> convertPage(PageResult<GwpDO> page);

    List<GwpExcelVO> convertList02(List<GwpDO> list);

    List<GwpRespDTO> convertList03(List<GwpDO> list);

}
